package com.demo.study.creative.d02_abstractFactory.normal;

import com.demo.study.creative.d02_abstractFactory.Sender;
import com.demo.study.creative.d02_abstractFactory.impl.MailSender;
import com.demo.study.creative.d02_abstractFactory.impl.SmsSender;

/**
 * 静态工厂
 *
 * @author Baymax
 * @since 2021/1/18
 */
public class StaticFactory {
    public static Sender getMailSender() {
        return new MailSender();
    }

    public static Sender getSmsSender() {
        return new SmsSender();
    }

}
